
Select database Category
We have 4 options in Reading Method
Read Method = Table /user-defined SQL / Auto generated / SQL builder generated SQL
Oracle  Data set
Data set
Oracle  properties
properties  Source  Read Method = Table  (Select)
Source  Read Method = Table  (Select)
Table = EMP (Specify)
DB options = { user = <<user>>, password = <<password>>}
DB options Mode = Auto generate
Password = Tiger
User = Scott
 Load
Load Table Definitions
Table Definitions Import
Import Plug in Metadata definition
Plug in Metadata definition  Select the Driver that is Oracle 9
Select the Driver that is Oracle 9  ok
 ok Data source Name = oracle/User id = Scot/ Password = TigeràNextà coroner  list = Scott
Data source Name = oracle/User id = Scot/ Password = TigeràNextà coroner  list = Scott     Table
Table  Next
 Next  Select  EMP
Select  EMP  import
import  Table Definition
Table Definition  plugin
 plugin  ORACLE 9
ORACLE 9  EMP
 EMP [change the SQL type of Hire date from Data to time stamp ]
 [change the SQL type of Hire date from Data to time stamp ]
 Now view Data
Now view Data
Do you want to master DataStage? Then enrol in "DataStage Training" This course will help you to master DataStage
SQL Query = Select e no, e name, Sal from emp where dept no = 10
↓
(click on columns on the right side, to view all the column names of EMP tables
That is e no, e name Sal, job, Hire data,……)
Oracle enterprise − Dataset
↓
First head method = Table load and then go for Auto-generated SQL
Properties   Read Method  = Auto-generated SQL
Read Method  = Auto-generated SQL   Read Method  = user-defined  SQL
    Read Method  = user-defined  SQL
SQL Query = Select emp no, e name, job from emp where dept no = 10;
Now go to file
Now
Oracle Enterprise — Dataset
↓
Properties  Read Method = SQL builder generated SQL.
 Read Method = SQL builder generated SQL.
SQL Query = <<SQL builder Query>>
Password = Tiger
User = Scott     click on build SQL
 click on build SQL
Remote Server = Oracle à Build new Query (oracle 9 syntax)
Table Definition – plug in – ORACLE 9- Scott –Select EMP, DEPT
Here double click on the required columns from both the table.
 Required columns will be displayed
Required columns will be displayed
Predicates expression editor
↓ ↓
Comparison in link null emp. Dept no = 10 add
Note :
The data connection is only in the 8 versions.
It is a technique for saving and reusing stage property values.
Suppose that we have 3 different oracle enterprises, and in 1 oracle enterprise We create a data connection, then it automatically other 2 records enterprise Should the username, password.
(i) Oracle enterprise Data set
↓ ↓
Properties   User = Scott
       User = Scott
Password = Tiger
Remote Server =  Oracle   Stage
 Stage Data connection
Data connection  Browse
Browse  Save data connection
 Save data connection  data connection Name = stark
 data connection Name = stark  Save Data connection as
Save Data connection as  Table  Definition
Table  Definition  Star
Star  Save
Save  ok
 ok
Properties  stage
 stage  data connection = load data connection
 data connection = load data connection  Table Definition
 Table Definition  star
 star  open
 open  ok   (it that is oracle enterprise automatically gets user id, pwd, a remote server)
ok   (it that is oracle enterprise automatically gets user id, pwd, a remote server)
The second way of creating Data connection:- (BY default to all oracle enterprise)
 New
New  other (click on data connection)
 other (click on data connection)  ok (click on data connection name = Shilpa)
 ok (click on data connection name = Shilpa)  click ok parameters
 click ok parameters  browse
 browse  stage types
stage types   parallel
parallel  database
database  oracle enterprise
 oracle enterprise  open
open  Server = oracle
Server = oracle  user-id = Scott  password = Tiger
 user-id = Scott  password = Tiger  ok0
ok0 Ok
Ok Save in Table Definition
 Save in Table Definition  ok
 okwill be automatically displayed.
View   Repository
Repository  Table Definition
 Table Definition  select Data connection
select Data connection  Right-click
Right-click  delete
 delete
ODBC enterprise — Dataset
Properties  Read method = Table
Read method = Table
Table = EMP
Connection Data source = chaladi
Click on connection user = Scott password = tiger
Columns à load à view data
Start  control panel
control panel  Administrate Tools
 Administrate Tools  Data source (ODBC)
 Data source (ODBC)  System DSN
System DSN  Add Microsoft ODBC for oracle
 Add Microsoft ODBC for oracle  finish
 finish  Data source = chaladi   user = Scott  Server = oracle
    Data source = chaladi   user = Scott  Server = oracle  ok
ok
[Data source Name is created with the Name “chaladi”]
Automatically handles the conflict between Source data type and Data stage datatypes.
ODBC Connector ----- Data set
Double click  on ODBC connector  it lists the DSN Names
 it lists the DSN Names  Select the Data Source  (that is chaladi)
Select the Data Source  (that is chaladi)  ok
ok  username = Scott
username = Scott  password = tiger
 password = tiger  Click on test
Click on test  display the connection is good
 display the connection is good  SQL Select Statement  = select * from EMP
SQL Select Statement  = select * from EMP  click on view Data
click on view Data
Note :
Version dependent
It works only with the versions that are associated with Dataset(that is it can access Oracle 9 i but not oracle10g and 11g). To overcome this, we have a substitute that is ODBC connector
Good performance
Oracle enterprise supports reject link at target but not at the source
In oracle enterprise à while loading àIn import à, we are using plugin Metadata
Then we need to change Data Datatype to Time Stamp.
But while import à use or Orchestrate.
It automatically takes à time stamp Best Results.
Sheet, sheet 2, …
While reading Data with ODBC
Sheet 1 becomes Table 1
Sheet 1 becomes Table 2
Starts  programs
 programs  micro soft excel
 micro soft excel  create excel sheet EMP DEPT
create excel sheet EMP DEPT Rename the sheet1, sheet2
Rename the sheet1, sheet2  save then with .xls extension
 save then with .xls extension
Start à control panel  administrative Tools
 administrative Tools  Data source
 Data source  system DSN
system DSN AddMicrosoft excel Driver (* .xls) à Data source Name = chaladil
AddMicrosoft excel Driver (* .xls) à Data source Name = chaladil  Select Workbook
Select Workbook  D:/shilpa à Double click dept .xls
 D:/shilpa à Double click dept .xls  emp .xls Select Emp.xls
 emp .xls Select Emp.xls  ok
ok  Select chaladil
 Select chaladil
ODBC enterprise — Dataset
Properties  Read Method = Table
 Read Method = Table
Data source = chaladil
User = admin system user id and password
Password = phil
 load
 load  Table Definition
 Table Definition  import
 import ODBC Table Definition
ODBC Table Definition  Select the DSN : Chaladil user name = admin password = phil
 Select the DSN : Chaladil user name = admin password = phil Ok
Ok Ok
Ok Import
ImportNow, in properties
Table = “EMP$” (always table name should be in double quotes followed with $ symbol)
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.